Triangle Digital Services Ltd                        TDS2020 ANS Utilities

BMP-DXF to FORTH  Ver 1.01                     by Adrian Mills   15 Feb 03
[C] 2003 mTECH Electronics

The BMP/DXF to FORTH Converter is a tool for converting drawing and image
files into compilable ANS Forth code for repoduction on an LCD graphic
display interfaced to a TDS2020F.

--------------------------------------------------------------------------
CONTACT

Adrian is a TDS2020F Expert and has done projects for UK and North
American customers of Triangle Digital Services Ltd

mTECH Electronics
Adrian Mills
Tel:     +44-1663-719572  (011-44-1663-719572 from USA/Canada)
Email:   info@mtechelectronics.com
Web :    www.mtechelectronics.com
Country: United Kingdom
International enquires welcome.

--------------------------------------------------------------------------
DESCRIPTION

To make a drawing or picture on a graphics LCD:

  1. Draw or import the picture into AutoCad or any other drawing program
      which will export *.DXF files. Drawing units should be interpreted
      as one unit per pixel on the finished display and of course the
      drawing should be no larger than the chosen graphics display. Export
      the picture into a file with extension .DXF, for example XMAS.DXF.

      Alternatively, if this is a picture, not a vector drawing, convert
      it to a file with extension .BMP with the same number of horizontal
      and vertical pixels as the picture will need on the LCD.

  3. Install the program 'BMP-DXF to FORTH 1.0 Setup.exe' which is
      downloadable from http://www.mtechelectronics.com/pages/downloads
      and then use it to convert the .DXF or .BMP file to a .TDS Forth
      source file.

  4. In your Forth program add these library files according to the
      controller chip used in the graphics LCD:
      either INCLUDE #G61830.TDS
          or INCLUDE #G6963.TDS
          or INCLUDE #G1335.TDS
          or INCLUDE #G1216.TDS
      AND    INCLUDE XMAS.TDS     (or whatever name you used)

  5. If the graphic came from a .DXF file, to display it in your program
     execute the word created in step 3. For instance:
      : TEST (  --  )
         G-INIT                  \ initialise LCD
         xmas_dxf ;              \ draw picture

     If you converted the picture from a .BMP file, see library routine
     #PICTURE.TDS for display instructions.
